//
//  AListController.h
//  MClient
//
//  Created by  wangfei on 10-3-31.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class EGORefreshTableHeaderView;
@interface AListController : MCTableViewController <UIActionSheetDelegate,UITabBarDelegate>{
	
	UIToolbar *pageBar;
	NSString *dataObjectName;
	NSString *layoutName;
	NSMutableArray *queryFilter;
	int page;
	int totalPage;
	NSMutableArray *listData;
	NSMutableDictionary *listLayout;
	int startFieldIndex;
	NSMutableArray *listButtons;
	NSMutableArray *listDescButtons;
	NSMutableDictionary *aListInfo;
	BOOL     isJump2Page;
	
	// 拖拽更新的VIEW:下页更新
	EGORefreshTableHeaderView *refreshHeaderView;
	BOOL _reloading;
	
	// 拖拽更新的VIEW：上页更新
	EGORefreshTableHeaderView *refreshHeaderView_Up;
	BOOL _reloading_up;
	
	int		 buttonCol;
	NSMutableArray *withFormButtons;
	float cellWidth;
	float cellHeight;
	float imageWidth;
	float imageHeight;
	NSMutableDictionary *imagesCache;
	BOOL    dataRefresh;
    
    CGPoint startPoint;
    
    int actionSheetFlag;
}

@property (nonatomic, retain) NSString *dataObjectName;
@property (nonatomic, retain) NSString *layoutName;
@property (nonatomic, retain) NSMutableArray *queryFilter;
@property (nonatomic) int page;
@property (nonatomic, retain) NSMutableArray *listData;
@property (nonatomic, retain) NSMutableDictionary *listLayout;
@property (nonatomic) BOOL dataRefresh;

- (void)getDataFromServer;

@end
